package com.cn.ant.modules.wechat.dao;

import com.cn.ant.common.persistence.MyBatisRepository;
import com.cn.ant.modules.wechat.entity.WeiXinCustomInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 微信活动参与用户Mapper接口
 * @author AntDream
 * @version 2015-04-02
 */
@MyBatisRepository
public interface WeiXinCustomInfoMapper{

    public int delete(String id);

    public int insert(WeiXinCustomInfo record);

    public WeiXinCustomInfo get(String id);

    public WeiXinCustomInfo getByOpenId(@Param("openId") String openId);

    public int update(WeiXinCustomInfo record);

    public List<WeiXinCustomInfo> query(Map<String,Object> param);

    public int queryCount(Map<String, Object> param);

    public int queryPrizeCustom();
}
